home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 676 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  34 lines

  1. Newsgroups: comp.lang.c,alt.msdos.programmer
  2. Path: mxsld2.pd.infn.it!LORETI
  3. From: loreti@mxsld2.pd.infn.it (Maurizio Loreti)
  4. Subject: Re: Two strange C problems.
  5. X-Nntp-Posting-Host: mxsld2.pd.infn.it
  6. Message-ID: <DKv7rz.CnL@news.cern.ch>
  7. Sender: news@news.cern.ch (USENET News System)
  8. Reply-To: loreti@mxsld2.pd.infn.it
  9. Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
  10. References: <4cojb2$qog@lugb.latrobe.edu.au>,<4cqrom$a63@arcturus.ciril.fr>
  11. Date: Mon, 8 Jan 1996 13:50:00 GMT
  12.  
  13. In article <4cqrom$a63@arcturus.ciril.fr>, gross laurent <gross> writes:
  14. >For your first problem, try to FLUSH the buffers. Printf and Scanf and all I/O
  15. >operations uses a buffer whitch is not automatically flushed when you exit of
  16. >your program.
  17. >For your second problem when you write "carac=15" then chr(carac) is the ASCII
  18. >character of decimal value 15, ie the ASCII character 15. If you write
  19. >carac=\15, then chr(carac) is the ASCII character Hex(15), ie the ASCII
  20. >character 21.
  21. >
  22.  
  23. 1) Your EMail address in the header ("gross") is unusable; please
  24.    contact your system administrator.
  25. 2) Your answer is wrong; "carac=\15" is a syntax error, and maybe you
  26.    meant "carac='\15'".
  27. 3) Your answer is doubly wrong because '\15' is OCTAL 15, i.e. decimal
  28.    13.
  29. 4) You are still wrong quoting "chr(integer constant)"; I don't know
  30.    of any function with such a name in C.
  31. --
  32. Maurizio Loreti                       http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
  33. Un. of Padova, Dept. of Physics - Padova, Italy          loreti@padova.infn.it
  34.